index-files-created-as-root
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Mon, 2 Jan 2017 03:47:36 +0000 (03:47 +0000)
committerRyan Tandy <ryan@nardis.ca>
Mon, 2 Jan 2017 03:47:36 +0000 (03:47 +0000)
commit716e26b6e5c6d723f1fb13266cbb39a6f86724f6
tree07f88ab4d9c2396f36e202fbaa3df3516e47275b
parentbc7315e1fb1ca601eb03df54a2e5ee014895dd9b
index-files-created-as-root

Document in the man page that slapindex should be run as the same user
as slapd, and print a warning if it's run as root (since Debian defaults
to running slapd as openldap).

Not suitable for upstream in this form.  This patch needs to be reworked
to check the BerkeleyDB database ownership and only warn if running as
root with a database that's not owned by root.

Upstream ITS #5356 filed requesting better handling of this.  Current
upstream discussion leans towards putting the check into the database
backend and aborting if slapd is run as a different user than the database
owner, which is an even better fix.

Gbp-Pq: Name index-files-created-as-root
doc/man/man8/slapindex.8
servers/slapd/slapindex.c